From ubuntu:18.04
ENV LANG C.UTF-8
MAINTAINER aohanhongzhi@qq.com
ADD ./sources.list /etc/apt/sources.list
RUN apt-get clean
RUN apt-get update && apt-get install -y apt-utils unzip
#指定好工作目录，后面就会以这个作为相对路径
WORKDIR /home/app/
ADD jbr11.zip jbr11.zip
# 解压并且删除文件，减小镜像的大小
RUN unzip -p jbr11.zip && rm jbr11.zip
ADD erp-server-0.0.1-SNAPSHOT.jar erp-server-0.0.1-SNAPSHOT.jar
# ENV JAVA_OPTS=""
RUN ls -l /home/app/jbr/bin/
EXPOSE 9090
ENTRYPOINT ["/home/app/jbr/bin/java","-jar","/home/app/erp-server-0.0.1-SNAPSHOT.jar" ]